[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Calculator (Calculator)
This is a class that represents
a simple mathematical calculator.
Namespace: Calculator
You can use it to add, subtract, divide and multiply integers and fractional numbers.
- Addition
- Subtraction
- Division
- Multiplication
Assembly: Calculator (Calculator)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class SimpleCalculator |
| C# |
|---|
public class SimpleCalculator |
| C++ |
|---|
public ref class SimpleCalculator |
Methods
| Icon | Type | Description |
|---|---|---|
| Add(Int32, Int32) |
This method adds two integers.
| |
| Divide(Int32, Int32) |
This method divides two integers.
| |
| Equals(Object) | ||
| Finalize() | ||
| GetHashCode() | Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table. | |
| GetType() | Gets the Type of the current instance. | |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| Multiply(Int32, Int32) |
This method multiplies two integers.
| |
| Subtract(Int32, Int32) |
This method subtracts two integers.
| |
| ToString() |
Constructors
| Icon | Type | Description |
|---|---|---|
| SimpleCalculatorNew() |
Remarks
This class is developed on .NET 2.0